package com.smartfactory.sail.vo.order;

import com.baomidou.mybatisplus.annotation.TableField;
import com.smartfactory.sail.dto.InspectioncriteriaDto;
import com.smartfactory.sail.dto.ItemMaterialDto;
import com.smartfactory.sail.dto.ItemWorkingprocedureDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author 王巨壁
 * @title: AddProjectReq
 * @projectName smart-sail
 * @description: 新增样品订单
 * @date 2019/7/2516:49
 */
@Data
public class AddYPOrderReq {

    @ApiModelProperty(value = "物料编码")
    @NotBlank
    private String code;

    @ApiModelProperty(value = "客户名称")
    private String custName;

    @ApiModelProperty(value = "产品名称")
    @NotBlank
    private String name;

    @ApiModelProperty(value = "物料描述")
    private String info;

    @ApiModelProperty(value = "图纸号")
    private String drawingCode;

    @ApiModelProperty(value = "型号")
    private String specification;

    @ApiModelProperty(value = "报废率")
    private Integer scrapRate;

    @ApiModelProperty(value = "联系人名称")
    @TableField("contactsName")
    private String contactsName;

    @ApiModelProperty(value = "联系方式")
    @TableField("contactInformation")
    private String contactInformation;

    @ApiModelProperty(value = "企业地址")
    @TableField("custAddr")
    private String custAddr;

        @ApiModelProperty(value = "时产能")
    private Integer hourlyCapacity;

    @ApiModelProperty(value = "产品图片id 可以多个")
    private String productDrawings;

    @ApiModelProperty(value = "客户图纸id 可以多个")
    private String custDrawings;

    @ApiModelProperty(value = "技术图纸id 可以多个")
    private String technicalDrawings;

    @ApiModelProperty(value = "产品检验标准")
    private List<InspectioncriteriaDto> inspectioncriteriaList;

    @ApiModelProperty(value = "需要的原料列表")
    @NotNull
    private List<ItemMaterialDto> itemMaterialList;

    @ApiModelProperty(value = "产品工序及校验-绑定的部门id")
    @NotNull
    private Long deptId;

    @ApiModelProperty(value = "产品工序及校验")
    @NotNull
    private List<ItemWorkingprocedureDto> workingprocedureList;

}
